﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XSerialization2.Sandbox
{
    public class Program
    {
        static void Main(string[] args)
        {
            var root = new Node() { V = "root" };
            root.nodes = new List<Node>()
            {
                new Node() { V = "10" },
                new Node() 
                { 
                    V = "11",
                    nodes = new List<Node>()
                    {
                        root,
                        new Node() { V = "111" },
                    }
                },
                new Node() { V = "12" },
                root
            };

            Alg.Dfs(root, new Processor(0));
        }
    }
}
